﻿@model AuctionControllerModel.Index
<div class="my-main">
    <div class="ui-box  ui-box-alpha">
        <div class="ui-box-head">
            <div class="ui-box-head-border">
                <div class="ui-box-head-title">
                    订单中心</div>
                <span class="ui-box-head-text">竞 拍</span> <a href="#" class="ui-box-head-more">去竞拍</a>
            </div>
        </div>
        <div class="ui-box-container">
            <div class="ui-box-content">
                dd</div>
        </div>
        <div class="ui-box-container-noborder">
            <div class="tabbable" style="margin-top: 20px;">
                <ul class="nav nav-tabs" style="padding-left: 40px;">
                    <li class="active"><a href="#1">我的订单</a></li>
                    <li><a href="#2">用手机号码注册</a></li>
                </ul>
                <div class="tab-content">
                    <div class="tab-pane active">
                        <table class="ui-table ui-table-inbox ui-table-alpha">
                            <thead>
                                <tr>
                                    <th class="span3">
                                        商品信息
                                    </th>
                                    <th class="span1">
                                        数 量
                                    </th>
                                    <th class="span2">
                                        成交价(元)
                                    </th>
                                    <th class="span2">
                                        支付总价(元)
                                    </th>
                                    <th class="span2">
                                        订单状态
                                    </th>
                                    <th class="span2">
                                        操作
                                    </th>
                                </tr>
                            </thead>
                            @Model.Orders.Each(@<tbody class="@(item.Item.OrderStatus == OrderStatus.Pending ? "item-pending" : "item")">
                                <tr class="item-header">
                                    <td colspan="2">
                                        订单号：@(item.Item.Id)
                                    </td>
                                    <td colspan="2">
                                        @(item.Item.Category == 0 ? "竞购获得" : "补差获得")
                                    </td>
                                    <td colspan="2">
                                        获得时间：@(item.Item.CreatedOn.ToString("yyyy-MM-dd HH:mm:ss"))
                                    </td>
                                </tr>
                                <tr>
                                    <td class="col">
                                        <div class="media">
                                            <a class="pull-left" href="" target="_blank">
                                                <img data-src="holder.js/64x64" class="media-object" alt="64x64" style="width: 64px;
                                                    height: 64px;" src="">
                                            </a>
                                            <div class="media-body">
                                                <h5 class="media-heading">
                                                    @(item.Item.Name)
                                                </h5>
                                                枯干
                                            </div>
                                        </div>
                                    </td>
                                    <td class="col">
                                        @(item.Item.Quantity)
                                    </td>
                                    <td class="col">
                                        <p>
                                            成交价: @(item.Item.BidPrice)</p>
                                        <p>
                                            运费及保费: @(item.Item.AdditionalCharge)</p>
                                    </td>
                                    <td class="col">
                                        @(item.Item.Total)
                                    </td>
                                    <td class="col">
                                        @(item.Item.OrderStatus)
                                    </td>
                                    <td class="ui-table-action">
                                        <a href="@(WebSite.Pay)/auction/?param=@(item.Item.Id)" target="_blank">支付</a>
                                    </td>
                                </tr>
                                <tr class="item-footer">
                                    <td colspan="7">
                                    </td>
                                </tr>
                            </tbody>
                            )
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
